﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
									namespace="Core.Domain.Model"
									assembly="Core">
  <class name="Post" table="Post" lazy="true">
    <id name="PostId" column="[PostId]">
      <generator class="native" />
    </id>
    <property name="PostName" column="[PostName]" />
    <property name="PostDescription" column="[PostDescription]" />
    <property name="PublishedDate" column="[PublishedDate]" />
    <bag name="Comments" lazy="false" cascade="all-delete-orphan" inverse="true" >
      <key column="[PostId]"></key>
      <one-to-many class="Comment"></one-to-many>
    </bag>
  </class>
</hibernate-mapping>